<html>
<head><meta charset="utf-8"><title>Incremental compilation bug · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Incremental.20compilation.20bug.html">Incremental compilation bug</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="241741200"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Incremental%20compilation%20bug/near/241741200" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Incremental.20compilation.20bug.html#241741200">(Jun 07 2021 at 07:57)</a>:</h4>
<p>Just got this on <code>cargo check --tests</code>, but running <code>cargo clean</code> fixed it:</p>
<div class="codehilite"><pre><span></span><code>error[E0599]: no function or associated item named `new` found for struct `Documentation` in the current scope
  --&gt; crates/ide_completion/src/completions/attribute/lint.rs:28:52
   |
28 |                 .documentation(hir::Documentation::new(lint_completion.description.to_owned()));
   |                                                    ^^^ function or associated item not found in `Documentation`
</code></pre></div>



<a name="241760170"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Incremental%20compilation%20bug/near/241760170" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Incremental.20compilation.20bug.html#241760170">(Jun 07 2021 at 11:14)</a>:</h4>
<p>hmm, did you force-enable incremental? it's turned off on the current stable unless you set an env var</p>



<a name="241762190"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Incremental%20compilation%20bug/near/241762190" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Incremental.20compilation.20bug.html#241762190">(Jun 07 2021 at 11:33)</a>:</h4>
<p>Right, it must be something else. Not really actionable, just mentioned it in case someone else runs into it. I.. spent quite some time trying to figure out what was wrong with the code</p>



<a name="241762305"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Incremental%20compilation%20bug/near/241762305" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Incremental.20compilation.20bug.html#241762305">(Jun 07 2021 at 11:34)</a>:</h4>
<p>I've definitely seen something similar myself</p>



<a name="241762318"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Incremental%20compilation%20bug/near/241762318" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Incremental.20compilation.20bug.html#241762318">(Jun 07 2021 at 11:34)</a>:</h4>
<p>might be some odd Cargo bug?</p>



<a name="241762509"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Incremental%20compilation%20bug/near/241762509" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Incremental.20compilation.20bug.html#241762509">(Jun 07 2021 at 11:36)</a>:</h4>
<p>Maybe I switched branches while <code>cargo check</code> was running or something like that.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>